package com.nlscan.ncomgateway.core.common

/**
 * <pre>
 *  author: lin.qing
 *  time  : 2023/4/3
 *  desc  :
 * </pre>
 */
object AppConst {

    /**
     * {@link Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD}
     */
    const val SHOW_IME_WITH_HARD_KEYBOARD = "show_ime_with_hard_keyboard"

    //模拟输出
    const val ACTION_EMULATE = "nlscan.action.senddata.ACTION_EMULATE"
    const val EXTRA_EMULATE = "SEND_DATA"

    //模拟输出
    const val OUTPUT_ACTION_FILL = "nlscan.action.senddata.ACTION_FILL"
    const val EXTRA_FILL = "SEND_DATA"

    const val DEVICE_ADDRESS = "device_address"
    const val BUNDLE_KEY_DEVICE_ADDRESS_LIST = "bk_device_address_list"

    /**
     * 设置页跳转到IP输出设置页面
     */
    const val REQUEST_KEY_IP_OUTPUT_SETTING = "rk_ip_output_setting"
    const val BUNDLE_KEY_IP_PROTOCOL = "bk_ip_protocol"

    const val REQUEST_PATH_PARAM = "requestPathParam"

    const val ACTION_SEND_NLS_CMD = "com.nlscan.nhub.action.SEND_CMD"
    const val EXTRA_DEVICE_ADDRESS = "DEVICE_ADDRESS"
    const val EXTRA_NLS_CMD = "CMD"
    const val ACTION_RECEIVE_NLS_CMD_RESULT = "com.nlscan.nhub.action.RECEIVE_CMD_RESULT"
    const val EXTRA_STATUS = "STATUS"
    const val EXTRA_RESULT = "RESULT"

    /**
     * 接入 libs/framework.jar 后 找不到 Build.VERSION_CODES.R
     */
    const val ANDROID_VERSION_CODES_R = 30  //Android11
    const val ANDROID_VERSION_CODES_S = 31  //Android12

    const val PERMISSION_BLUETOOTH_CONNECT = "android.permission.BLUETOOTH_CONNECT"
    const val PERMISSION_BLUETOOTH_SCAN = "android.permission.BLUETOOTH_SCAN"
    const val PERMISSION_BLUETOOTH_ADVERTISE = "android.permission.BLUETOOTH_ADVERTISE"


    /**
     * 策略管理App 指定跳转到设置页卡
     */
    const val KEY_JUMP_PAGE = "jump_page"

    /**
     * 跳转到设置页卡
     */
    const val JUMP_PAGE_TO_SETTINGS = "settings"

}